from rest_framework import serializers
from .models import User

class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        # 根据你需要在前端展示的字段来填写
        fields = ['id', 'username', 'avatar_url']
